<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'main.jsp' starting page</title>

</head>

<body>
	欢迎您！${sessionScope.currUser.username }


	<a href="toAdd.jspx">添加新产品</a>
	<table border="1" width="70%">
		<tr>
			<td>商品名称</td>
			<td>商品价格</td>
			<td>操作</td>
		</tr>
		<tr>
			<c:forEach items="${list }" var="pro">
				<tr>
					<td>${pro.prodname}</td>
					<td>${pro.price }</td>
					<td><a href="edit.jspx?id=${pro.id }">修改</a> <a
						href="remove.jspx?id=${pro.id }">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tr>
	</table>
</body>
</html>
